<?php

	/**
	 * Bike_Js_Ext_form_field_Base
	 *
	 * Any options passed will be used as setting of ExtJs config object.
	 *
	 *
	 * @category   Bike
	 * @package    Bike_Js
	 * @subpackage Ext
	 * @copyright  Copyright (c) 2012 DF-Studio. (http://www.df-studio.net)
	 * @version    1
	 */

	/**
	 * @see Bike_Js_Ext_form_field_Field
	 */
	require_once 'Bike/Js/Ext/form/field/Field.php';


	class Bike_Js_Ext_form_field_Base extends Bike_Js_Ext_form_field_Field
	{
		/**
		 * xtype for ExtJs config object
		 */
		static protected $_xType = 'field';
		
		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$this->setSettings(array(
				'fieldLabel' => $this->translate('Untitled field'),
				'invalidText' => $this->translate('The value in this field is invalid'),
				'blankText' => $this->translate('This field is required'),
			));
		}
	}
